package com.hafu.service;

import com.hafu.dao.SpInfoDao;
import com.hafu.model.SPinfo;

import java.util.ArrayList;

public class SpInfoService {
    private SpInfoDao spInfoDao = new SpInfoDao();
    public Boolean addSpInfo(SPinfo sp)
    {
        return spInfoDao.addSpInfo(sp);
    }
    public Boolean deleteSpInfo(int id)
    {
        return spInfoDao.deleteSpInfo(id);
    }
    public ArrayList<SPinfo> grtSpInfoByName (SPinfo sp)
    {
        return spInfoDao.getSpInfoByName(sp) ;
    }
    public Boolean updateSpInfo(SPinfo sp)
    {
        return spInfoDao.updateSpInfo(sp);
    }
}


